package blog.open1111.service.impl;

import blog.open1111.dao.ManagerDao;
import blog.open1111.entity.Manager;
import blog.open1111.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by dengwubo on 2017/9/7.
 */
@SuppressWarnings("all")
@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    private ManagerDao managerDao;

    @Override
    public Manager getByUserName(String userName) {
        System.out.println("userName========="+userName);
        Manager manager = managerDao.getByUserName(userName);
        System.out.println("name============"+manager.getUserName());
        return manager;
    }

    @Override
    public Integer update(Manager manager) {
        return managerDao.update(manager);
    }
}
